package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 角色功能关联
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_sys_role_resource")
public class SysRoleResource extends Model<SysRoleResource> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Long id;
    /**
     * 外键spd_sys_role.id
     */

	@TableField("sys_role_id")
	private Long sysRoleId;
    /**
     * 外键spd_sys_resource.id
     */

	@TableField("sys_resource_id")
	private Long sysResourceId;


	public Long getId() {
		return id;
	}

	public SysRoleResource setId(Long id) {
		this.id = id;
		return this;
	}

	public Long getSysRoleId() {
		return sysRoleId;
	}

	public SysRoleResource setSysRoleId(Long sysRoleId) {
		this.sysRoleId = sysRoleId;
		return this;
	}

	public Long getSysResourceId() {
		return sysResourceId;
	}

	public SysRoleResource setSysResourceId(Long sysResourceId) {
		this.sysResourceId = sysResourceId;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}